Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

invocation: rephrase slightly the proof rules to be less confusing down the line #93

Merged
merged 7 commits into from
Dec 10, 2024

Conversation

MichaelMure
Copy link
Collaborator

No description provided.

@MichaelMure MichaelMure requested a review from smoyer64 December 9, 2024 17:42
token/invocation/proof.go Outdated Show resolved Hide resolved
- for invocation, reorder the parameters for a more "natural language" mental model
- for delegation, make "subject" a required parameter to avoid make powerline by mistake
- for delegation, implement powerline
@MichaelMure
Copy link
Collaborator Author

close #75

@MichaelMure MichaelMure merged commit c3c2c96 into main Dec 10, 2024
6 checks passed
@MichaelMure MichaelMure deleted the proof-rephrase branch December 10, 2024 12:27
Copy link
Collaborator

@smoyer64 smoyer64 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm not sure this actually closes #75.

// using the public key associated with the private key sent as the first
// parameter.
func New(iss, aud did.DID, cmd command.Command, pol policy.Policy, opts ...Option) (*Token, error) {
// You can read it as "(issuer) allows (audience) to perform (cmd+pol) on (subject)".
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Glad you included these - I was thinking overnight that we could also state these in "user story" form. Perhaps something like "As an Issuer, I want to allow my Audience to Invoke Command+Policy on Subject". I tried to be consistent with https://github.com/ucan-wg/spec?tab=readme-ov-file#roles.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants